<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<div class="m15">
	<table cellpadding="0" cellspacing="0" class="tablelist mt15">
    	<tr>
           <th>订单号</th>
           <th width="20%">下单时间</th>
           <th width="10%">状态</th>
           <th width="10%">金额小计</th>
           <th width="30%">地址</th>
           <th width="10%">操作</th>
        </tr>
        <c:choose>
       		<c:when test="${not empty resultList}">
       			<c:forEach items="${resultList}" var="item" varStatus="v">
        			<tr <c:if test="${v.count % 2 == 0}">class="trbg"</c:if>>
			            <td class="center"><a  target="_blank" href="adminIndex_view?orderId=${item.id }">${item.id }</a></td>
			            <td>${item.createTime }</td>
			            <td>${item.statusDesc }</td>
			            <td>￥<fmt:formatNumber value="${item.realMoney / 100.0}" pattern="#0.00" />元</td>
			            <td>${item.addr }</td>
			            <td><c:if test="${item.status < 4}"><input type="button" class="btnc_a" style="width:60px" value="${item.nextHandleDesc }" onclick="changeStatus(${item.id },${item.status + 1})" />&nbsp;&nbsp;<i onclick="changeStatus(${item.id },5)" class="i_e" title="取消"></i></c:if> </td>
		          	</tr>
       			</c:forEach>
       		</c:when>
       		<c:otherwise>
       			<tr><td colspan="6"><div class="didnot">暂无数据！</div></td></tr>
       		</c:otherwise>
        </c:choose>
	</table>
</div>

